Using the Command Line Interface


How to check a web site using the starting URL:

To scan a URL, enter the following command in the command line:

weblv.exe -url="URL"

For example:
 weblv.exe -url="http://www.relsoftware.com/"
 C:\Program Files\WLV\weblv.exe -url="http://www.relsoftware.com/"

How to check a web site using an earlier created profile:

To scan a .wlvs files, enter the following in the command line:

weblv.exe "filename.wlvs" [/start] [/auto] [/noclose]

If the "/start" key is specified, the verification process will be initiated on the program startup.
If the "/auto" key is specified, the program will be launched in the automatic mode, e.g. all confirmation messages will be ignored, all results will be logged to a file and the program will be shut after fulfilling the job (use the "/noclose" key to avoid this).

For example:
 weblv.exe "save\example.wlvs"
 weblv.exe "save\example.wlvs" /start /auto
 weblv.exe "save\example.wlvs" /start /auto /noclose


To export the data, enter the following in the command line:

weblv.exe "filename.wlvs" -ExportFile="filename.ext" -ExportType=TXT|HTM|RTF|XLS|CSV

For example:
 weblv.exe "Example.wlvs" -ExportFile="ExportExample.ext" -ExportType=HTM /start /auto

To export the data to CSV format, enter the following in the command line:

weblv.exe "filename.wlvs" -ExportData="c:\path\to\dir"
(the same as Action - Export - Export the data to CSV format)

Note: The specified directory ("c:\path\to\dir") must exist.

For example:
 weblv.exe "Example.wlvs" -ExportData="c:\documents\website\data" /start /auto


To generate a HTML Report, enter the following in the command line:

weblv.exe "filename.wlvs" -ReportFile="filename.htm"

For example:
 weblv.exe "Example.wlvs" -ReportFile="Report.htm" /start /auto

To specify the kind of the report, enter the following in the command line:

weblv.exe -ReportList="REPORT_ID_1;REPORT_ID_2;REPORT_ID_N"

 Report ID |  Report Name
 ----------|-----------------------------
   PS1     |  Profile information
   BL1     |  Broken links sorted by link
   BL2     |  Broken links sorted by page
   BM1     |  Bad bookmarks
   SL1     |  Slow pages
   SL2     |  Slow pages (Detailed)
   PP1     |  Pages processed (Detailed)
   OP1     |  Old pages
   NP1     |  New pages
   MT1     |  Pages with missing titles
   RL1     |  Redirected links
   RL2     |  Redirected links sorted by link
   RL3     |  Redirected links sorted by page
   FE1     |  Filename extensions
   DT1     |  Directory tree
   OA1     |  Orphaned files

For example:
 weblv.exe -ReportList="PS1;BL2;BM1"
 weblv.exe "Example.wlvs" -ReportFile="Report.htm" -ReportList="PS1;BL2;BM1;RL3;OA1" /start /auto

Note: The quotation marks are needed only if there are spaces in the path or file name.


Reports and profiles e-mailing settings:

Recipient=

The address to send the e-mail to.
E.g.: -Recipient="John Doe "
If no address is specified here, the report/profile will be e-mailed to the address specified in the profile or in the program's settings.

SendMode=

There are three possible options for e-mailing the reports:
1) always : e-mail all reports.
2) broken : e-mail the report only if any broken links have been found.
3) masks : e-mail the report if the broken links descriptions meet the criteria specified by the masks contained in the current profile.
E.g.: -SendMode=always
By default the '-SendMode=broken' key is used.

AttachType=

Specifies the kind of the file to be attached.
1) report : report
2) wlvs : current profile
E.g.: -SendMode=wlvs
By default the '-AttachType=report' is used.

AttachFile=

Use this key to attach a custom file; the full path to the file to be attached must be specified (used instead of the '-AttachType=' key).

/SendMail

Send an e-mail message even if the profile is not set up for sending e-mails.
Note: May be omitted if the '-Recipient=' key is used.

/NoSendMail

Do not send any e-mails even if the profile is set up for e-mailing reports or profiles (can be required very infrequently).

For example:
 weblv.exe "filename.wlvs" -ReportFile="filename.htm" -Recipient="John Doe <john.doe@relsoftware.com>" /start /auto

How to open a file on program startup:

weblv.exe "filename.wlv"

For example:
 weblv.exe "Example Link List.wlv"
 weblv.exe "Example Web Site Verification.wlvs"
 weblv.exe "Example Link List.wlv" "Example Web Site Verification.wlvs"

How to use the command line interface for Link List mode:

weblv.exe -LL_ImportFile=filename.txt -LL_ImportType=TXT|HTM
-LL_ExportFile=filename.htm -LL_ExportType=TXT|HTM|RTF|XLS|CSV
[/start] [/auto] [/noclose]

For example:
 weblv.exe -LL_ImportFile="c:\path\ListOfLinks.htm" -LL_ImportType=HTM -LL_ExportFile="c:\path\Result.txt" /start /auto

© 2001-2003 REL Software. All rights reserved.